﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPPublic.eneity
{
    /// <summary>
    /// 部门表
    /// </summary>
    [SugarTable("Sector")]
    public class Sector : Audit
    {
        /// <summary>
        ///部门id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int? SectorId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? SectorName { get; set; }
        /// <summary>
        /// 父id
        /// </summary>
        public int? Pid { get; set; }
    }
}
